﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using STKMIS.DAL;

namespace STKMIS.BLL
{
    public class ProductSupplier
    {
        public static DataTable GetProductSupplierListByType(string name, int type)
        {
            try
            {
                List<SqlDBParameter> param = new List<SqlDBParameter>();

                param.Add(new SqlDBParameter("@Name", DbType.String, name));
                param.Add(new SqlDBParameter("@type", DbType.Int32, type));

                DataTable dt = SqlDBServer.GetDataTableByStoredProc("proc_GetProductSupplierList", param, SqlDBServer.SqlConnStringModelDb); 

                return dt;
            }
            catch
            {
                return null;
            }
        }
    }
}
